/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import javafx.scene.effect.Effect;
import javafx.scene.effect.Reflection;
import javafx.scene.effect.Shadow;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.paint.Color;

/**
 *
 * @author Adriano
 */
public class Pessa extends ImageView{
    
    public Pessa(String color) {
        Image img = new Image("/resource/img/peao.png");
        Reflection reflecao = new Reflection(0, 0.25, 0.15, 0);
        Effect cor = new Shadow(0, Color.web(color));
        reflecao.setInput(cor);
        setEffect(reflecao);
        setImage(img);
    }
}
